package cc.catface.dao.biz.app;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel
@TableName("ap_user")
public class ApUser {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("name")
    @ApiModelProperty(value = "昵称")
    private String name;
    @TableField("password")
    @ApiModelProperty(value = "密码(MD5)")
    private String password;
    @TableField("phone")
    @ApiModelProperty(value = "手机号")
    private String phone;
    @TableField("image")
    @ApiModelProperty(value = "头像外链")
    private String image;
    @TableField("sex")
    @ApiModelProperty(value = "性别(0男1女2未知)")
    private int sex;
    @TableField("is_certification")
    @ApiModelProperty(value = "")
    private int isCertification;
    @TableField("is_identity_authentication")
    @ApiModelProperty(value = "")
    private int isIdentityAuthentication;
    @TableField("status")
    @ApiModelProperty(value = "")
    private int status;
    @TableField("flag")
    @ApiModelProperty(value = "")
    private int flag;
    @TableField("created_time")
    @ApiModelProperty(value = "注册时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

}
